import httpFetch from 'share/httpFetch'

export default {
  getSubsidyDefaultConfig() {
    return httpFetch.get('/api/travel/subsidy/control/default')
  },
  postSubsidyConfig(params) {
    return httpFetch.post('/api/travel/subsidy/control', params)
  },
  getSubsidyConfigList(params){
    return httpFetch.get('/api/travel/subsidy/control', params)
  },
  deleteSubsidyConfig(param){
    return httpFetch.delete('/api/travel/subsidy/control', param)
  },
  getSubsidyConfigDetail(param){
    return httpFetch.get(`/api/travel/subsidy/control/${param.id}/detail`)
  },
  putSubsidyConfigDetail(param){
    return httpFetch.put(`/api/travel/subsidy/control`, param)
  },
  getSubsidyControlFormList(params){
    return httpFetch.post('/api/travel/subsidy/control/form/list', params)
  }
}